import http from '@/utils/http/axios'
import { type } from './interface'

/**
 * 查询访问日志
 */
export function sysVisLogPage(params) {
  return http.request<type.logPage>({
    url: '/app-admin/sysVisLog/page',
    method: 'GET',
    params
  })
}

/**
 * 查询操作日志
 */
export function sysOpLogPage(params) {
  return http.request<any>({
    url: '/app-admin/sysOpLog/page',
    method: 'POST',
    params
  })
}

/**
 * 清空访问日志
 */
export function sysVisLogDelete(params) {
  return http.request<any>({
    url: '/app-admin/sysVisLog/delete',
    method: 'POST',
    params
  })
}

/**
 * 清空登录日志
 */
export function sysOpLogDelete(params) {
  return http.request<any>({
    url: '/app-admin/sysOpLog/delete',
    method: 'POST',
    params
  })
}
